Base64 Module
Preface
Yesterday the team's sister came to ask questions about the POP3 protocol, so today a little bit about the format of the POP3 protocol and the poplib in Python. And the POP server back to the data in a part of the need to use
Brief introductionFeatures: RFC 3548:base16, BASE32, Base64 data encoding. Converts the binary data to an ASCII sequence that is suitable for plaintext protocol transmission. Transformation8bits contains valid data for 6, 5, or 4bits for each byte,
Base64 Basic Algorithm principle
String instance (Base64 codec for S13)Test: S13Code: CzezDecoding: S13
How to encode the process analysis of S13 for Czez:
BASE64 requires converting every three 8Bit bytes to four 6Bit bytes (3*8 = 4*6 = 24), and
Base64 is a feeding bit encryption method. Why is it base64? Because no matter what plaintext is (such as Chinese characters and special symbols ), encrypted passwords are only 64 characters including letters A-Z, a-Z, 0-9, and + and, after the body
/*** Encrypt the string with a 64-bit encryption algorithm* Title: sales automation software* Description: enables the salesperson to manage the sales process through a single software. Information can be shared with each other at the same time.*
Java base64 is an open-source Java class library for encoding and decoding (encode/decode) base64 strings and data streams. Base64 is one of the most common encoding methods used to transmit 8-bit code on the network. It can be used as the
Digest Algorithm (HASHLIB)Python's hashlib provides a common digest algorithm, such as MD5,SHA1 and so on.What is a digest algorithm? Abstract the algorithm is also called hash algorithm and hashing algorithm. It converts any length of data into a
BASE64 encoding is a commonly used character encoding and is used in many places. The JDK provides easy-to-use Base64encoder and Base64decoder, which makes it easy to complete BASE64-based encoding and decoding. Here are the two small functions I
Base64 is a representation of binary data based on 64 printable characters. Since 2^6=6, each bit is a unit that corresponds to a printable character.3 bytes have 24 bits, corresponding to 4 Base64 units, 3 bytes can be represented by 4 printable
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.